import {Alert, Button, View} from 'react-native';

export default function App() {
  return (
    <View>
      <Button
        title="点击"
        onPress={() => {
          Alert.alert('Alert Title', 'My Alert Msg', [
            {
              text: 'Cancel',
              onPress: () => console.log('Cancel Pressed'),
              style: 'cancel',
            },
            {text: 'OK', onPress: () => console.log('OK Pressed')},
          ]);
          // Alert.alert('弹出窗口');
        }}
      />
    </View>
  );
}
